package com.dragon.modules.yuegou.model.points;

import com.dragon.modules.yuegou.entity.points.ClearEntity;
import com.dragon.modules.yuegou.enums.points.ClearStatus;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 积分清零任务表模型类
 * 
 * @author pbuilder generated
 * @date 2019-11-20 15:25:36
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Clear extends ClearEntity {

	/**
	 * 构造一个空积分清零任务表模型对象
	 */
	public Clear(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个积分清零任务表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public Clear(ClearEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个积分清零任务表模型对象
	 * 
	 * @param other 其它对象
	 */
	public Clear(Clear other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置 
	 * 
	 * @param id  
	 * @return 当前对象
	 */
    public Clear id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 * @return 当前对象
	 */
    public Clear busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public LocalDate getClearDate() {
		return clearDate;
	}

    /**
	 * 设置清理时间
	 * 
	 * @param clearDate 清理时间
	 * @return 当前对象
	 */
    public Clear clearDate(LocalDate clearDate) {
    	this.clearDate = clearDate;
    	return this;
    }

	@Override
	public Integer getClearPoint() {
    	return clearPoint;
    }

    /**
	 * 设置清理积分
	 * 
	 * @param clearPoint 清理积分
	 * @return 当前对象
	 */
    public Clear clearPoint(Integer clearPoint) {
    	this.clearPoint = clearPoint;
    	return this;
    }

	@Override
	public Integer getClearMember() {
    	return clearMember;
    }

    /**
	 * 设置清理会员
	 * 
	 * @param clearMember 清理会员
	 * @return 当前对象
	 */
    public Clear clearMember(Integer clearMember) {
    	this.clearMember = clearMember;
    	return this;
    }

	@Override
	public ClearStatus getStatus() {
    	return status;
    }

    /**
	 * 设置[枚举]执行状态：0-待执行-READY、1-已执行-COMPLETE、2-已取消-CANCEL
	 * 
	 * @param status [枚举]执行状态：0-待执行-READY、1-已执行-COMPLETE、2-已取消-CANCEL
	 * @return 当前对象
	 */
    public Clear status(ClearStatus status) {
    	this.status = status;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置创建人
	 * 
	 * @param createdBy 创建人
	 * @return 当前对象
	 */
    public Clear createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public Clear createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置
	 * 
	 * @param del 
	 * @return 当前对象
	 */
    public Clear del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置
	 * 
	 * @param delBy 
	 * @return 当前对象
	 */
    public Clear delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置
	 * 
	 * @param delTime 
	 * @return 当前对象
	 */
    public Clear delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }

	private String userName;
	private String userMobile;

	private String userId;
	
	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserMobile(String userMobile) {
		this.userMobile = userMobile;
	}

	public String getUserMobile() {
		return userMobile;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserName() {
		return userName;
	}
	
}
